const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {
    vistor_param:any;
    next_param:any;
    @property(cc.Animation)
    anim: cc.Animation = null;
   
    // LIFE-CYCLE CALLBACKS:

    // onLoad () {}

    // start () {

    // }

    close_finish(num, string) {
        console.log('close_finish');

        
        this.node.getComponent(cc.Animation).play('scene_open');
      
    }

    open_finish(num, string) {
        this.node.parent.getComponent('win_prize').open_finish();
        
    }
   

    // update (dt) {}
}
